def get_true_rect(hwnd):
    left, top, right, bottom = win32gui.GetWindowRect(hwnd)
    import win32con, win32print
    hDC = win32gui.GetDC(0)
    w = win32print.GetDeviceCaps(hDC, win32con.DESKTOPHORZRES)
    from win32.win32api import GetSystemMetrics
    fake_w = GetSystemMetrics(0)
    zoom = w / fake_w
    return left*zoom, top*zoom, right*zoom, bottom*zoom


print(f'窗口参数:\n  left: {left}\n  top: {top}\n  right: {right}\n  bottom: {bottom}\n')